home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / update~4.z / update~4 / lib_stdio_rewind.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  330 b   |  23 lines

  1. /*                r e w i n d
  2.  *
  3.  * This function rewinds a stream to the beginning of the file.
  4.  * It is equivalent to fseek(fp, 0L, 0) except that no value
  5.  * is returned.
  6.  *
  7.  * Patchlevel 1.0
  8.  *
  9.  * Edit History:
  10.  */
  11.  
  12. #include "stdiolib.h"
  13.  
  14. /*LINTLIBRARY*/
  15.  
  16. void rewind(fp)
  17.  
  18. FILE *fp;                /* stream */
  19.  
  20. {
  21.   (void) fseek(fp, 0L, SEEK_SET);
  22. }
  23.